package redis

import (
	"github.com/go-redis/redis/v8"
	"shop/appconfig"
)

var Client *redis.Client

func RedisData() {
	Client = redis.NewClient(&redis.Options{
		Addr:     appconfig.ViperData.Redis.Addr,
		Password: appconfig.ViperData.Redis.Password, // no password set
		DB:       appconfig.ViperData.Redis.DB,       // use default DB
	})
}
